package com.web44.ssm.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @Title: SpringConfig
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/18 9:40
 *
 */
//导入jdbc 以及mybatis的配置=
@Configuration
// 扫描所有的包 排除controller注解的
@ComponentScan(basePackages = "com.web44.ssm",excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION,value = Controller.class)
})
@PropertySource("classpath:db.properties")
@Import(value={JdbcConfig.class,MyBatisConfig.class})
@EnableTransactionManagement(proxyTargetClass = true)
public class SpringConfig {
}
